using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Portal.GUI.EditoralOffice.MainOffce.NewsEditModules.FamilyVote
{
	public partial class edit : Portal.API.Module
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}
		protected void grvListVotes_RowDataBound(object sender, GridViewRowEventArgs e)
		{
			if (e.Row.RowType == DataControlRowType.DataRow)
			{
				LinkButton btnSelectVote = e.Row.FindControl("btnSelectVote") as LinkButton;
				btnSelectVote.OnClientClick = "return logQuenstion(this, " + ((DataRowView)e.Row.DataItem)["VoteID"].ToString() + ")";
			}
		}

		void Page_Init(object sender, EventArgs e)
		{
			sqlVoteList.SelectParameters[0].DefaultValue = Context.User.Identity.Name;
		}

		protected void grvVoteList_SelectedIndexChanged(object sender, EventArgs e)
		{
			((Portal.GUI.EditoralOffice.MainOffce.editnews.editModule)this.Page).loadPresentationModule(ModuleType, ModuleRef);
		}
	}
}